$(function(){
	
	//init menu and navigator
	var info = $("#info");
	if(info && info.length) {
		//<data id="info" nav="timer" menu="myCreate" service="计时服务" action="我的计时">
		$("#breadcrumb").show();
		var nav = info.attr("nav");
		var menu = info.attr("menu");
		var service = info.attr("service");
		var action = info.attr("action");
		
		$("#" + nav).addClass("active");
		$("#" + menu).addClass("active");
		$("#nav1").text(service);
		$("#nav1").attr("href", $("#" + nav + ":first-child").attr("href")); 
		$("#nav2").text(action);
		
		$("#" + nav + " ul").removeClass("collapse");
	}
	
});
	 
	 